﻿namespace Away.IdentityServer.Core.Services.Impl;

[ServiceInject(ServiceLifetime.Scoped)]
public class ClientService : IClientService
{
    private readonly IClientRepository _clientRepository;
    public ClientService(IClientRepository clientRepository)
    {
        _clientRepository = clientRepository;
    }

    public IResult Page(ClientSearch search)
    {
        return _clientRepository.Page(search);
    }

    public void Remove(List<int> ids)
    {
        _clientRepository.Remove(ids);
    }

    public void Save(Client model)
    {
        _clientRepository.Save(model);
    }
}
